<template>
  <child1
    :name="name"
    title="标题"
    :age="age"
    @changAge="changAge"
    @changName="changName"
  ></child1>
</template>

<script>
import Child1 from './Child1.vue'
export default {
  name: 'page-day32',
  components: { Child1 },
  data() {
    return {
      name: '张三',
      age: 20
    }
  },
  methods: {
    changAge(value) {
      this.age = value
    },
    changName(value) {
      console.log('value', value)
      this.name = value
    }
  }
}
</script>

<style lang="scss" scoped></style>
